﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media.Imaging;
using com.skype.api;

namespace Hugo.UIOptions
{
    class SkypeMessageUIOption : UIOption
    {

        private String displayName;
        private String msg;

        public SkypeMessageUIOption(String displayName, String msg, BitmapSource iconSource)
            : base(msg, iconSource)
        {
            this.displayName = displayName;
            this.msg = msg;
        }

        public override void wasSelected()
        {
            Sounds.speakMessage("Messaging " + this.displayName + " the following message: " + msg);
            Communicate.getInstance().sendMessage(this.displayName, this.msg);
        }
    }
}
